package com.rgs.se.sort;

public class SortUtil {

    public static void Print(int[] arr){
        for(int i = 0;i<arr.length;i++){
            System.out.print(arr[i]+",");
        }
        System.out.println();
    }
    /*
     * 交换数组的两个元素
     * */
    public static int[] Temp(int[] arr,int a,int b){
        int temp = arr[a];
        arr[a] = arr[b];
        arr[b] = temp;
        return arr;
    }
}
